package com.ruoyi.classes.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 班级管理对象 qcl_classes
 *
 * @author ruoyi
 * @date 2024-10-17
 */
@TableName(value = "qcl_classes")
@Data
public class Classes extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID 编号
     */
    @Excel(name = "ID 编号")
    private Integer id;

    /**
     * 年级
     */
    @Excel(name = "年级")
    private String grade;

    /**
     * 班级名字
     */
    @Excel(name = "班级名字")
    private String className;

    /**
     * 班级人数
     */
    @Excel(name = "班级人数")
    private Long classPerNum;

    /**
     * 所属学校
     */
    @Excel(name = "所属学校")
    private String classBelonging;

    /**
     * 班主任
     */
    @Excel(name = "班主任")
    private String classManager;

    /**
     * 状态
     */
    @Excel(name = "状态", readConverterExp = "1=正常,2=不正常")
    private String classStatus;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private String delFlag;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Long getClassPerNum() {
        return classPerNum;
    }

    public void setClassPerNum(Long classPerNum) {
        this.classPerNum = classPerNum;
    }

    public String getClassBelonging() {
        return classBelonging;
    }

    public void setClassBelonging(String classBelonging) {
        this.classBelonging = classBelonging;
    }

    public String getClassManager() {
        return classManager;
    }

    public void setClassManager(String classManager) {
        this.classManager = classManager;
    }

    public String getClassStatus() {
        return classStatus;
    }

    public void setClassStatus(String classStatus) {
        this.classStatus = classStatus;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("grade", getGrade())
                .append("className", getClassName())
                .append("classPerNum", getClassPerNum())
                .append("classBelonging", getClassBelonging())
                .append("classManager", getClassManager())
                .append("classStatus", getClassStatus())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
